package cn.ccenjie.wsy.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_user")
@Data
public class User {

    @Id
    protected String id;

    protected String username;

    protected String password;

    protected String roles;


    public static User build() {
        return new User();
    }

    public User sId(String id) {
        this.id = id;
        return this;
    }

    public User sUserName(String username) {
        this.username = username;
        return this;
    }


}
